package cn.z2huo.knowledge.basic.keyword.interfacekeyword.staticmethod;

/**
 * <p>
 *
 * @author z2huo
 */
interface InterfaceStaticMethod {

    int a = 12;

    void method();

    default void defaultMethod() {
        test();
        privateMethod();
        privateAndStaticMethod();
        staticMethod();
    }

    static void staticMethod() {
        test();
        privateAndStaticMethod();
    }

    static void test() {
        System.out.println("InterfaceStaticMethod");
    }

    private void privateMethod() {
        System.out.println("private method");
    }

    private static void privateAndStaticMethod() {
        System.out.println("private and static method");
    }

}
